package com.central.project.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.central.common.model.SysRole;
import com.central.db.mapper.SuperMapper;
import com.central.common.model.SysProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/6/24
 * @describe
 */
@Mapper
public interface SysProjectMapper extends SuperMapper<SysProject>{
    List<SysProject> findProjects(Page<SysProject> page, @Param("u")Map<String, Object> params);

    List<SysProject> findUserProjects(Page<SysProject> page,@Param("userId") Long userId, Map<String, Object> params);

    List<SysProject> findProByProIds(@Param("list") List<Long> proIds);
}